package com.gitee.wsl.security.signature.ecdsa

import com.ionspin.kotlin.bignum.integer.BigInteger

/**
 * A class to store public and private keys in a keypair.
 *
 * @property publicKey The public key corresponding to the private key
 * @property privateKey The private key of the keypair.
 */
class EcKeyPair(val publicKey: EcPoint, val privateKey: BigInteger){
    companion object{
        fun generator(curve: EcCurve) = EcKeyGenerator.newInstance(curve)

        fun generator(privateKey: BigInteger,
                      curve: EcCurve ) =  EcKeyGenerator.newInstance(privateKey,curve)
    }
}
